projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e53bb1b
)
iconhelper: Fix leak when rendering to cairo surface
author
Bastien Nocera
<hadess@hadess.net>
Wed, 2 Oct 2013 13:33:20 +0000
(15:33 +0200)
committer
Bastien Nocera
<hadess@hadess.net>
Wed, 2 Oct 2013 15:21:48 +0000
(17:21 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=709264
gtk/gtkiconhelper.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconhelper.c
b/gtk/gtkiconhelper.c
index 397ba2f3b8a7e4bff9cc8de9d87e6b41ffc0da0f..cda1e9976d3a6fcbfb57c7f8e5ba1f74b561ee86 100644
(file)
--- a/
gtk/gtkiconhelper.c
+++ b/
gtk/gtkiconhelper.c
@@
-667,6
+667,7
@@
ensure_stated_surface_from_info (GtkIconHelper *self,
(gdk_pixbuf_get_width (destination) + scale - 1) / scale;
self->priv->rendered_surface_height =
(gdk_pixbuf_get_height (destination) + scale - 1) / scale;
+ g_object_unref (destination);
}
self->priv->rendered_surface = surface;